import request from '@/utils/request'

export function findByPage(query) {
  return request({
    url: '/community/findByPage',
    method: 'get',
    params:query //表单数据
  })
}


export function deleteCommunity(communityId) {
  return request({
    url: '/community/deleteById',
    method: 'get',
    params:{"communityId":communityId}//form
  })
}
export function addCommunity(data) {
  return request({
    url: '/community/add',
    method: 'post',
    data//json
  })
}

export function updateCommunity(data) {
  return request({
    url: '/community/updateById',
    method: 'post',
    data//json
  })
}

export function findAllList() {
  return request({
    url: '/community/findAllList',
    method: 'get'
  })
}